var api = require('../../utils/api.js')

Page({
  data: {
    list: [],
    isLogin:false,
  },
  onLoad() {

  },
  /**
   * 跳转到登录页
   */
  onLogin() {
    wx.navigateTo({
      url: '/pages/login/login',
    });
  },


  onShow() {
    
    wx.getStorage({
      key: 'user',
      success: (res) => {
        this.setData({
          user: res.data
        });
      }
    });

  },

});